Get the document information. (For 1-byte complex languages, the result of counting characters may be incorrect.)